<?php
/**
 * This file is part of Hyperf Mall.
 *
 * @link     https://gitee.com/scwlkj/hypref_mall
 * contact  hyperf_mall@163.com
 */
namespace App\Repository;

use App\Model\MemberOpenIdModel;
use App\Repository\Member\MemberRepository;
use Hyperf\Di\Annotation\Inject;

class MemberOpenIdRepository extends BaseRepository
{
    /**
     * @Inject
     * @var MemberOpenIdModel
     */
    protected $model;

    public function register(string $openid, $image, $username): array
    {
        return MemberRepository::getInstance()->register($openid, $image, $username);
    }
}
